import request from '../utils/request'

// 用户登录
export const login = (loginData: LoginData) => request<any, LoginResponse>({
    url: 'api/v1/doctor/sessions',
    method: 'POST',
    data: loginData,
})

// 用户注册
export const register = (registerData: RegisterData) => request<any, RegisterResponse>({
    url: '/api/v1/doctor/users/list',
    method: 'POST',
    data: registerData,
})